<?php

namespace app\wanqing\validate;

use think\Validate;

class WanqingVirtualAddressValidate extends Validate
{
    protected $rule = [
        'email' => 'email',
        'company' => 'unique:wanqing_virtual_address',
        'phone' => 'regex:/^1\d{10}(,1\d{10})*$/',
    ];

    protected $message = [
        'email.email' => '邮箱格式错误',
        'company.unique' => '公司名不能重复',
//        'email.unique' => '邮箱不能重复',
        'phone.regex' => '手机号错误',
    ];
}